//编写一个程序，要求用户输入下限整数和一个上限整数，然后依次计算从下限到上限
//的每个整数的平方的加和，最后显示结果。程序将不断题书用户输入下限整数和上限
//整数并显示出答案，知道用户输入的上限整数等于或小于下限整数为止。程序运行结
//果示例如下:
//
//Enter lower and upper intteger lim its : 5 9
//the sums ofsquares from 25 to 81 is 255
//Enter next set of lim its : 3 25 
//the sunm of the squares from 9 to 625 is 5520
//Enter next set of lim its: 5 5
//Done 

#include <stdio.h>
int main()
{
	int a,b,i,z;
	printf("Enter lower and upper intteger lim its :");
	scanf("%d %d",&a,&b);
	while ( a<b )
	{
		z=0;
		for(i=a;i<=b;i++)
			z+=i*i;
		printf("the sums ofsquares from %d to %d is %d\n",a*a,b*b,z);
		printf("Enter next set of lim its : ");
		scanf("%d %d",&a,&b);
	}
	printf("Done\n");

	return 0 ;
}


				
